 //
//  InformationTableViewCell.m
//  RedManStock
//
//  Created by lanou3g on 15/7/25.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "InformationTableViewCell.h"
#import "MyHandle.h"
@implementation InformationTableViewCell

- (void)awakeFromNib {
    // Initialization code
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setInformation:(Information *)information{
    
    if (_information != information) {
        
        _information = information;
        
    }
    
    self.titleLabel.text = information.title;
    self.dateLabel.text = information.dateSB;
    self.information.url = information.url;
    self.sourceLabel.text = information.source;
    
    CGFloat sourceLabelWidth = [MyHandle stringHeight:information.source fontSize:14 width:21];
    self.sourceLabel.frame = CGRectMake(226, 91, sourceLabelWidth, 21);
    
    
    
    
    if (information.stock.count) {
    self.sourceLabel.text = information.stock[0];
        
    }
   
    



    
}





@end
